extends ../layouts/layout

block content
  .editform
    form(action="/article/update",method="post", update_article)
      -if(!article.isNew)
        input(type="hidden", name="id", value="#{article._id}")
      ul.fl
        li.fl.w
          input(type="text", name="title", value="#{article.title}")#article_title.w300.fl.input1
          label(for="article_title").vt.fl.ml5.f-grey5C * 文章标题
        li.fl.w
          .fl
            textarea(name="body",editor_field)#article_body.w300.h80 #{article.body}
          label(for="article_body").vt.fl.ml5.f-grey5C * 文章内容
        li.fl.w
          input(type="submit", value="保存").p5.pl15.pr15
      .cb